﻿webpackJsonp([5], {
    128: function (a, i) {
    }, 134: function (a, i, t) {
        a.exports = t.p + 'static/img/default-portrait.jpg';
    }, 135: function (a, i, t) {
        (function (i) {
            a.exports = {
                onload: function (a, t, n) {
                    var e = new Image;
                    e.src = t, e.onload = function () {
                        a.attr('src', t), n && i.isFunction(n) && n($this, this.naturalWidth, this.naturalHeight);
                    }, e.onerror = function () {
                        throw'picture loading error';
                    };
                }
            };
        }).call(i, t(0));
    }, 15: function (a, i, t) {
        (function (i) {
            function n(a) {
                a && a.params && i.extend(o, a.params), e({
                    url: s,
                    type: a.type,
                    data: o,
                    beforeSend: a.beforeSend,
                    callback: a.callback
                });
            }

            var e = t(2), s = '/common/user', o = {type: ''};
            a.exports = n;
        }).call(i, t(0));
    }, 154: function (a, i, t) {
        (function (i) {
            function n(a) {
                i.ajax({url: e.apiPrefix + s.getCity() + o, type: 'POST'}).then(function (t) {
                    a && i.isFunction(a) && a();
                });
            }

            var e = t(12), s = t(3), o = '/user/logout';
            a.exports = n;
        }).call(i, t(0));
    }, 254: function (a, i, t) {
        (function (a) {
            t(128), t(1), t(11), t(36), t(7);
            var i = t(12), n = t(3), e = t(135), s = t(15), o = t(154), c = t(134);
            a(function () {
                function t(a) {
                    l.attr('href', i.prefix + y + '/user/user-info.html'), e.onload(f, a.pictureUrl), l.find('.info-box').html('<div class="phone">' + a.phone + '</div><div class="tip">欢迎您登录</div>'), u.removeClass('hide'), m.attr('href', i.prefix + y + '/history'), p.attr('href', i.prefix + y + '/user/collect/all'), h.attr('href', i.prefix + y + '/appointment/index'), d.attr('href', i.prefix + y + '/entrust/owner-entrust-list.html'), x.attr('href', i.prefix + y + '/calculator/calculate');
                }

                function r() {
                    l.attr('href', i.prefix + y + '/user/login.html'), f.attr('src', c), l.find('.info-box').html('<div class="link">登录/注册</div>'), u.addClass('hide'), m.attr('href', i.prefix + y + '/history'), p.attr('href', i.prefix + y + '/user/login.html'), h.attr('href', i.prefix + y + '/user/login.html'), d.attr('href', i.prefix + y + '/user/login.html'), x.attr('href', i.prefix + y + '/calculator/calculate');
                }

                var l = a('#userInfo'), f = a('#portrait'), u = a('#signOut'), m = a('#myTracks'),
                    p = a('#myCollection'), h = a('#myReservation'), d = a('#myEntrustment'),
                    x = a('#mortgageCalculator'), y = n.getCity();
                !function () {
                    s({
                        params: {type: 'center'}, callback: function (a, i) {
                            'success' === a ? t(i) : r();
                        }
                    });
                }(), u.on('tap', function (a) {
                    a.stopPropagation(), o(r);
                });
            });
        }).call(i, t(0));
    }, 36: function (a, i, t) {
        (function (a) {
            var i = t(12), n = t(3), e = t(41), s = t(15);
            a(function () {
                function t() {
                    s({
                        callback: function (t, e) {
                            'success' === t && !a.isEmptyObject(e) && e.phone && (c.find('.login').attr('href', i.prefix + n.getCity() + '/user/user-center.html'), c.find('.login').find('.txt').text(e.phone));
                        }
                    });
                }

                a('body').append(e({domainName: i.prefix, cityName: n.getCity(), isMenuExist: n.isMenuExist}));
                var o = a('#overlay'), c = a('#navigate-body'), r = a('#menu');
                c.slide({direction: 'vertical'}), setTimeout(t, 500), o.on('touchmove.navigate', function (a) {
                    a.preventDefault();
                }), c.on('touchmove', function (a) {
                    a.preventDefault();
                }), r.on('tap', function (a) {
                    a.preventDefault(), a.stopPropagation(), o.show(), c.translate({duration: .3, value: 0});
                }), o.on('tap.navigate', function (a) {
                    a.preventDefault(), a.stopPropagation(), c.translate({
                        duration: .3,
                        value: '100%',
                        callback: function () {
                            o.hide();
                        }
                    });
                });
            });
        }).call(i, t(0));
    }, 41: function (a, i) {
        a.exports = function (a) {
            var i = '<nav class="navigate-body" id="navigate-body"> <div class="navigate"> <a class="items login" href="' + a.domainName + a.cityName + '/user/login.html"> <i class="icon iconfont icon-gerenzhongxin"></i> <span class="txt">登录/注册</span> </a> ';
            return a.isMenuExist(a.cityName, 'home') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '"> <i class="icon iconfont icon-home"></i> <span class="txt">首页</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'sale') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/sale"> <i class="icon iconfont icon-sale"></i> <span class="txt">二手房</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'newhouse') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/home/newhouse"> <i class="icon iconfont icon-newhouse"></i> <span class="txt">新房</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'rent') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/rent"> <i class="icon iconfont icon-rent"></i> <span class="txt">租房</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'office') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/office/rent"> <i class="icon iconfont icon-office"></i> <span class="txt">写字楼</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'garden') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/garden"> <i class="icon iconfont icon-garden"></i> <span class="txt">小区</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'shcool') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/scholar"> <i class="icon iconfont icon-school"></i> <span class="txt">学区房</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'fangjia') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/rates"> <i class="icon iconfont icon-fangjia"></i> <span class="txt">查房价</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'news') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/info"> <i class="icon iconfont icon-zixun"></i> <span class="txt">资讯</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'haiwai') && (i += ' <a class="items" href="' + a.domainName + 'haiwai/index"> <i class="icon iconfont icon-feiji"></i> <span class="txt">海外</span> </a> '), i += ' ', a.isMenuExist(a.cityName, 'about') && (i += ' <a class="items" href="' + a.domainName + a.cityName + '/about"> <i class="icon iconfont icon-about"></i> <span class="txt">关于Q房</span> </a> '), i += ' </div></nav>';
        };
    }
}, [254]);